package com.shoothzj.example.storage.core;

import com.shoothzj.example.storage.api.IRepo;
import com.shoothzj.example.storage.api.anno.CompatTable;

public abstract class AbstractDbService<T> implements IRepo<T> {

    protected final Class<T> tClass;

    protected final String tableName;

    protected AbstractDbService(Class<T> tClass) {
        this.tClass = tClass;
        final CompatTable annotation = tClass.getAnnotation(CompatTable.class);
        this.tableName = annotation.tableName();
    }

}
